/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package interfaz;

import cliente.Fase;
import elementos.Ranking;
import javax.swing.JButton;

/**
 *
 * @author julio
 */
public class PRanking extends javax.swing.JPanel {

    /**
     * Creates new form PRanking
     */
    public PRanking() {
        initComponents();
    }
    
    private Fase f;

    public Fase getF() {
        return f;
    }

    public void setF(Fase f) {
        this.f = f;
    }
    
    public void InitRank(Ranking rank){
        this.jLabel7.setText("RANKING FASE "+f.getNumero());
        this.jTextArea1.append(rank.toString());
    }
    
    public void ResetRank(){
        this.jTextArea1.setText("");
    }

    public JButton getVolver() {
        return volver;
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jLabel7 = new javax.swing.JLabel();
        jScrollPane1 = new javax.swing.JScrollPane();
        jTextArea1 = new javax.swing.JTextArea();
        volver = new javax.swing.JButton();

        setLayout(null);

        jLabel7.setFont(new java.awt.Font("Lucida Grande", 0, 24)); // NOI18N
        jLabel7.setText("RANKING FASE X");
        add(jLabel7);
        jLabel7.setBounds(257, 27, 258, 71);

        jTextArea1.setColumns(20);
        jTextArea1.setRows(5);
        jScrollPane1.setViewportView(jTextArea1);

        add(jScrollPane1);
        jScrollPane1.setBounds(111, 116, 546, 399);

        volver.setText("Volver");
        add(volver);
        volver.setBounds(154, 553, 83, 29);
    }// </editor-fold>//GEN-END:initComponents
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JLabel jLabel7;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JTextArea jTextArea1;
    private javax.swing.JButton volver;
    // End of variables declaration//GEN-END:variables
}
